/**
 * Created by IntelliJ IDEA.
 * User: Norman Moore
 * Date: 4/16/12
 * Time: 1:04 PM
 * To change this template use File | Settings | File Templates.
 */
var util = {
    getUrlParameters : function() {
        var map = {};
        var params = window.location.href.slice(window.location.href.indexOf('?') + 1).split('&');
        for(var i = 0; i < params.length; i++) {
            var split = params[i].split('=');
            map[split[0]] = split[1];
        }
        return map;
    },

    getLeft : function(element) {
        return parseInt(element.css("left"));
    },

    getTop : function(element) {
        return parseInt(element.css("top"));
    }
};